<?php

/**
 * Actividades_Paciente_Por_Realizar form base class.
 *
 * @method Actividades_Paciente_Por_Realizar getObject() Returns the current form's model object
 *
 * @package    citologia
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormGeneratedTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $
 */
abstract class BaseActividades_Paciente_Por_RealizarForm extends BaseFormDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'pacientes_id'   => new sfWidgetFormInputHidden(),
      'actividades_id' => new sfWidgetFormInputHidden(),
      'fechainicio'    => new sfWidgetFormDate(),
      'fechafinal'     => new sfWidgetFormDate(),
      'created_at'     => new sfWidgetFormDateTime(),
      'updated_at'     => new sfWidgetFormDateTime(),
    ));

    $this->setValidators(array(
      'pacientes_id'   => new sfValidatorChoice(array('choices' => array($this->getObject()->get('pacientes_id')), 'empty_value' => $this->getObject()->get('pacientes_id'), 'required' => false)),
      'actividades_id' => new sfValidatorChoice(array('choices' => array($this->getObject()->get('actividades_id')), 'empty_value' => $this->getObject()->get('actividades_id'), 'required' => false)),
      'fechainicio'    => new sfValidatorDate(),
      'fechafinal'     => new sfValidatorDate(),
      'created_at'     => new sfValidatorDateTime(),
      'updated_at'     => new sfValidatorDateTime(),
    ));

    $this->widgetSchema->setNameFormat('actividades_paciente_por_realizar[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'Actividades_Paciente_Por_Realizar';
  }

}
